package top.laoshuzi.server.camera.mqtt;

import org.eclipse.paho.client.mqttv3.MqttCallback;

public interface SimpleMqttClient {

    void connect(String serverURI, String clientId, MqttCallback mqttCallback);

    void disconnect();

    void subscribe(String topic, int qos);

    void publish(String topic, byte[] payload);

    void publish(String topic, byte[] payload, int qos, boolean retained);

}
